// 引入影院列表页面接口
import Cinemas from "../pages/cinemas/index.js";
import addCinemas from "../pages/cinemas/addCinemas.js";
import ChangeCinemas from "../pages/cinemas/changCinemas.js"
import upload from "../pages/cinemas/upload.js"


export default {
  "/cinemas": {
    on() {
      new Cinemas({ el: ".info-content" })
    },
  },
  "/addCinemas": {
    on() {
      new addCinemas({ el: ".info-content" })
    },
  },
  
  "./changeCinemas/:_id": { 
    on(_id) {
      new ChangeCinemas({ el:".info-content",_id }) //_id当做参数传过去
    }
  },

  "./upload/:_id": { 
    on(_id) {
      new upload({ el:".info-content",_id }) //_id当做参数传过去
    }
  },

}